﻿namespace GoodAdmin.System;

/// <summary>
/// 系统关联关系表
/// </summary>
[SugarTable(tableName: "Sys_Relation")]
public class SysRelation
{
    /// <summary>
    /// 对象Id
    /// </summary>
    [SugarColumn(ColumnDescription = "对象id", IsNullable = false)]
    public virtual long ObjectId { get; set; }
    /// <summary>
    /// 目标Id
    /// </summary>
    [SugarColumn(ColumnDescription = "目标Id", IsNullable = false)]
    public virtual long TargetId { get; set; }
    /// <summary>
    /// 分类
    /// </summary>
    [SugarColumn(ColumnDescription ="关系分类",IsNullable =false)]
    public string Category { get; set; }

    /// <summary>
    /// 额外信息
    /// </summary>
    [SugarColumn(ColumnDescription = "额外信息", IsNullable = true, ColumnDataType = StaticConfig.CodeFirst_BigString)]
    public string ExtraJson { get; set; }
}